'use strict'


/* let ZhuCe=document.getElementsByTagName(a); */




function btn_login(){

   let username= $('[name=username]').val();
   let password= $('[name=password]').val();

   
  
    
    let obj={
        username,
        password
    }



    $.post('http://localhost:8000/login',obj,(res)=>{

        if(res.code==1000){
            window.location.href='./index.html'
        }else{
            alert('用户名或密码有误！');
        }

    })

}

